/*
 * @Description: 
 * @Author: changqing
 * @Date: 2021-08-29 20:45:12
 * @LastEditTime: 2021-08-29 20:45:54
 * @LastEditors: changqing
 * @Usage: 
 */

var { of } = require('rxjs');
var { pairwise } =  require('rxjs/operators');

of(1, 2, 3, 4, 5, 6)
.pipe(pairwise())
.subscribe((data) => {
console.log(`pairwise 示例: ${data}`);
});
  // pairwise 示例: 1,2
  // pairwise 示例: 2,3
  // pairwise 示例: 3,4
  // pairwise 示例: 4,5
  // pairwise 示例: 5,6